<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>SDKAPP</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <style type="text/css">
        html,
        body {
            height: 100%;
        }

        .flex-con {
            overflow: auto
        }
    </style>
</head>

<body>
    <div id="wrap">
        <div id="main" class="flex-con">

        </div>
    </div>
</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        //适配iOS 7+，Android 4.4+状态栏
        //$api.fixStatusBar(header);
        var main = $api.byId('main');
        $api.fixStatusBar(main);

        //dark 状态栏字体为黑色，适用于浅色背景
        //light 状态栏字体为白色，适用于深色背景
        api.setStatusBarStyle({
            style: 'light',
        });

        //var url = 'http://192.168.0.146:8080/'; //'dist/index.html';

        var url = 'dist/index.html';
        //alert(JSON.stringify(api.safeArea));
        //var url = 'http://10.10.10.43:8080/';
        api.openFrame({
            name: 'main',
            url: url,
            bounces: false,
            rect: {
                x: 0,
                y: 0,
                w: 'auto',
                h: 'auto'
            }
        });
    };
</script>

</html>